package com.game;

import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;

public class MyGame  implements ApplicationListener
{
    public Screen getStartScreen()
    {
        return new IntroScreen(this);
    }

    public void create()
    {
        screen = getStartScreen();
    }

    public void resume()
    {
    }

    public void render()
    {
        screen.update(Gdx.graphics.getDeltaTime());
        screen.present(Gdx.graphics.getDeltaTime());
    }

    public void resize(int i, int i1)
    {
    }

    public void pause()
    {
    }

    public void dispose()
    {
    }

    Screen screen;

    public void setScreen(Screen screen)
    {
        this.screen.pause();
        this.screen.dispose();
        this.screen = screen;
    }
}
